package top.sjydzq.www.service;

import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;
import top.sjydzq.www.bean.Notice;

import java.util.List;

@Repository("NoticeDAO")
@Mapper
public interface NoticeService {
    public List<Notice> selectAll();
    public Notice selectById(int id);
    public boolean add(String title, String content);
    public void remove(int id);
}
